<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>if 条件判断语句</title>

    <script type="text/javascript">

   
   /*
    var testScores=prompt("请输入小明的期末成绩：");

    if (testScores>100||testScores<0||isNaN(testScores)){
       alert("不是合法值");
    }else if (testScores==100){
        alert("奖励一台车");
    }else if(testScores>=80){
        alert("奖励一台手机");
    }else if (testScores>=60){
        alert("奖励一本书");
    }else{
        alert("什么奖励也没有");
    }
    */

    /*
    var height=prompt("请输入你的身高：");
    var wealth=prompt("请输入你的财富:");
    var appearance=prompt("请输入你的颜值：");

    if (height>=180 && wealth >=1000 && appearance >=500){
        alert("我一定要嫁给她。");
    }else if(height>=180 || wealth >=1000 || appearance >=500){
        alert("嫁吧，比上不足比下有余。");
    }else{
        alert("不嫁");
    }
    */

    var num1 = +prompt("请输入num1：");
    var num2 = +prompt("请输入num2：");
    var num3 = +prompt("请输入num3：");

    if (num1<num2 && num1 < num3){
        if (num2<num3){
            alert(num1+"<"+num2+"<"+num3);
        }else{
            alert(num1+"<"+num3+"<"+num2);
        }
    }else if(num2<num1 && num2 < num3) {
        if(num1<num3){
            alert(num2+"<"+num1+"<"+num3);
        }else{
            alert(num2+"<"+num3+"<"+num1);
        }
    }else{
        if(num1<num2){
            alert(num3+"<"+num1+"<"+num2);
        }else{
            alert(num3+"<"+num2+"<"+num1);
        }
    }
    
    
    </script>
</head>
<body>
    
</body>
</html>